package work729.work2;

import java.util.Scanner;

public class UserViewImp implements UserView {
  static UserBizImp ubi = new UserBizImp();
  static Scanner sc = new Scanner(System.in);
  @Override
  public void login() {

    System.out.println("请输入用户名：");
    String username = sc.next();
    System.out.println("请输入密码");
    String password = sc.next();
    ubi.login(username,password);
  }

  @Override
  public void register() {
    System.out.println("请输入用户名：");
    String username = sc.next();
    System.out.println("请输入密码");
    String password = sc.next();
    System.out.println("请再次输入密码");
    String repassword = sc.next();
    System.out.println("请输入真实姓名");
    String name = sc.next();
    System.out.println("请输入邮箱");
    String email = sc.next();
    ubi.register(username,password,repassword,name,email);
  }
}
